//提醒类型转换
var rmdType2Name =function(id){
	var rmdTypeLetter = "";
	if(id == 1){
		rmdTypeLetter = "集团欠费提醒";
	}else if(id == 2){
		rmdTypeLetter = "法定节假日提醒";
	}else if(id == 3){
		rmdTypeLetter = "重要成员生日提醒";
	}else if(id == 4){
		rmdTypeLetter = "重要成员存费送费到期提醒";
	}else if(id == 5){
		rmdTypeLetter = "集团红灯预警提醒";
	}else if(id == 6){
		rmdTypeLetter = "集团周年庆提醒";
	}else if(id == 7){
		rmdTypeLetter = "协议/合同到期提醒";
	}else if(id == 8){
		rmdTypeLetter = "投诉提醒";
	}else if(id == 9){
		rmdTypeLetter = "重要成员存送终端到期提醒";
	}else if(id == 10){
		rmdTypeLetter = "关键指标告警提醒";
	}else if(id == 11){
		rmdTypeLetter = "主动提醒";
	}else if(id == 12){
		rmdTypeLetter = "集团重要成员红灯预警";
	}else if(id == 100){
		rmdTypeLetter = "主动提醒";
	}else{
		rmdTypeLetter = "提醒";
	}
	return rmdTypeLetter;
}


var click2details = function(origin,overFlag,rmdCategory,rmdContent,rmdDay,rmdId,rmdReadState,rmdType,readOnly){
	console.log("params:"+origin+overFlag+rmdCategory+rmdContent+rmdDay+rmdId+rmdReadState+rmdType);
    var json = {"origin":origin,"overFlag":overFlag,"rmdCategory":rmdCategory,"rmdContent":rmdContent,"rmdDay":rmdDay,"rmdId":rmdId,"rmdReadState":rmdReadState,"rmdType":rmdType};
    setCookie("rmd_details",JSON.stringify(json));
	window.location.href='reminder_detail.html?'+getParams()+"&readOnly="+readOnly;
};
